#ifndef DOWNLOADTABLEDELEGATE_H
#define DOWNLOADTABLEDELEGATE_H

#include <QItemDelegate>

class DownloadTableDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit DownloadTableDelegate(QObject *parent = 0);

    void paint(QPainter *painter, const QStyleOptionViewItem &option,
                          const QModelIndex &index ) const;
/*
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
                              const QModelIndex &index) const;

    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model,
                      const QModelIndex &index) const;

    void updateEditorGeometry(QWidget *editor,
            const QStyleOptionViewItem &option, const QModelIndex &index) const;
 */
private:
    void progressBarPaint(QPainter *painter, const QStyleOptionViewItem &option,
                          const QModelIndex &index ) const;
    void priorityIconPaint(QPainter *painter, const QStyleOptionViewItem &option,
                          const QModelIndex &index ) const;
    
};

#endif // DOWNLOADTABLEDELEGATE_H
